<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<title>个人信息</title>
</head>
<link rel="stylesheet" type="text/css" href="../styles/index.css">
<script type="text/javascript">
	(function (doc, win) {
        var docEl = doc.documentElement,
            resizeEvt = 'onorientationchange' in window ? 'onorientationchange' : 'resize',
            recalc = function () {
                var clientWidth = docEl.clientWidth;
                if (!clientWidth) return;
                if(clientWidth>=750){
                    docEl.style.fontSize = '20px';
                }else{
                    docEl.style.fontSize = 20 * (clientWidth / 750) + 'px';
                }
            };

        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
    })(document, window);
</script>
<body>
	<div class="warp hbg">

		<section class="personal">
			<div class="perChang">
				<form>
					<div class="perBox picture">
						<p>头像</p>
						<img src="../images/bgs/logos.png">
					</div>
					<div class="perBox">
						<p>昵称</p>
						<input class="formName" type="text" name="" placeholder="昵称">
						<span><i>0</i>/20</span>
					</div>
					<div class="perBox">
						<p>微信号</p>
						<input type="text" name="" placeholder="不填写微信号就不能发布Chat活动哦^_^">
					</div>
					<div class="perBox">
						<p>头衔</p>
						<input class="formTitle" type="text" name="" placeholder="架构师·工程师还是产品经理">
						<span><i>0</i>/20</span>
					</div>
					<div class="perBox">
						<p>简介</p>
						<textarea class="formTxtle" placeholder="公司职位？参与过哪些项目？是什么书的作译者或哪些大会的讲师？（详细的个个介绍会让读者更信赖你。）"></textarea>
						<span><i>0</i>/180</span>
					</div>
					<div class="perBox button">
						<button>保存</button>
					</div>
				</form>
			</div>
			
		</section>
		
		<footer class="footer">
			<nav class="nav">
				<ul>
					<li class="active">
						<a href="">
							<span class="navA"></span>
							<p>发现</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navB"></span>
							<p>圈子</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navC"></span>
							<p>阅读</p>
						</a>
					</li>
					<li>
						<a href="">
							<span class="navD"></span>
							<p>我</p>
						</a>
					</li>
				</ul>
			</nav>
		</footer>
	</div>
</body>
<script src="../js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(function(){

		//判断输入字符长度
		$('.formName').bind('input oninput', function() {
			var len=$(this).val().length;
		    $(this).next('span').find('i').html(len);
		});

		$('.formTitle').bind('input oninput', function() {
			var len=$(this).val().length;
		    $(this).next('span').find('i').html(len);
		});

		$('.formTxtle').bind('input oninput', function() {
			var len=$(this).val().length;
		    $(this).next('span').find('i').html(len);
		});
	});

</script>
</html>